package com.whw.cbf_qimodazuoye.utils;

import retrofit2.Retrofit;
import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;

public class FaSongQingQiu {

    public static Retrofit createRetrofit(){
        Retrofit retrofit = new Retrofit.Builder()
                .baseUrl("https://www.whwmiki.cn//cbfAS/api/") //设置网络请求的Url地址
                .addConverterFactory(GsonConverterFactory.create()) //设置数据解析器
                .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
                .build();
        return retrofit;
    }

}
